package com.csylh.dao;

import com.csylh.dto.OrderDTO;
import com.csylh.entity.OrderMaster;
import com.csylh.entity.WasteInfo;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

/**
 * Created by 留歌
 * Date: 2018/3/13 0:08
 * Description:
 */
@Mapper
public interface OrderMasterMapper {

    /**
     * 订单总表入库
     * @param orderMaster
     * @return
     */
    int save(OrderMaster orderMaster);
    /**
     * 根据orderID查询,订单表的信息
     * @param orderId
     * @return
     */
     OrderMaster selectMasterById(String orderId);
    /**
     * 根据orderID查询,
     * @param UserUserId,pageable
     * @return 分页的订单对象
     */
    Page<OrderMaster> findByUserUserId(String UserUserId, Pageable pageable);

    /** 取消订单. */
    int cancelOrder(OrderMaster orderMaster);


}
